package cn.iocoder.yudao.module.security.controller.admin.whitelistevent.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 白名单事件新增/修改 Request VO")
@Data
public class WhitelistEventSaveReqVO {

    @Schema(description = "资产ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3048")
    private Long id;

    @Schema(description = "源IP")
    private String sourceIp;

    @Schema(description = "源端口")
    private Integer sourcePort;

    @Schema(description = "目的IP")
    private String destinationIp;

    @Schema(description = "目的端口")
    private Integer destinationPort;

    @Schema(description = "协议")
    private String protocol;

    @Schema(description = "发生时间")
    private LocalDateTime eventTime;

    @Schema(description = "功能码")
    private Integer functionCode;

    @Schema(description = "功能码中文")
    private String functionCodeCn;

    @Schema(description = "消息类型", example = "1")
    private Integer msgType;

    @Schema(description = "寄存器区")
    private Integer registerArea;

    @Schema(description = "DB区")
    private Integer dbArea;

    @Schema(description = "点类型", example = "1")
    private Integer pointType;

    @Schema(description = "对象组号")
    private Integer objectGroupNum;

    @Schema(description = "变体号")
    private Integer variantNum;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}